package design_pattern.proxy_pattern.static_proxy;

/**
 * @author Cheng Jun
 * Description: 测试静态代理
 * @version 1.0
 * @date 2022/7/20 20:15
 */
public class Test {
    public static void main(String[] args) {
        LandLord wang = new Landlady("王阿姨");
        HouseAgency lianjia = new HouseAgency(wang);
        lianjia.rentHouse(80);
        lianjia.rentHouse(100);
    }
}
